import json, os, requests
from .base import BaseListView, BaseView
from django.http.request import HttpRequest
from kg_back.settings import SOURCE_DIR, SOURCE_URI
from ..models.user_serializer import UserInfoSerializer


class RandomTextView(BaseView):
    def get(self, request: HttpRequest):
        return self.to_json(data={'text': '太阳如此伟大，使众人感到温暖，为何又如此刺眼，使人无法靠近。'})